package com.ltmonitor.jt808.service;

import com.ltmonitor.entity.TerminalCommand;

/**
 * 从数据库中，读取前台用户下发的指令，转换成808协议格式，给终端下发命令
 * @author admin
 *
 */
public interface ICommandParseService {

	public abstract ICommandHandler getOnRecvCommand();

	public abstract void setOnRecvCommand(ICommandHandler value);

	public abstract int getInterval();

	public abstract void setInterval(int value);

	public abstract void start();

	public abstract void stop();
	public abstract TerminalCommand UpdateStatus(String GpsId, long SN,
			String status);

	public abstract void UpdateCommand(TerminalCommand tc);


	TerminalCommand getLatestCommand(int cmdType, String simNo);
	
	String getEventContent(int eventId);

}